package com.xinhuajs.articlemg.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.xinhuajs.articlemg.dao.ILoginDAO;
import com.xinhuajs.articlemg.mapper.LoginMapper;
import com.xinhuajs.articlemg.pojo.Admin;
@Repository("loginDAO")
public class LoginDAOImpl implements ILoginDAO{

	@Resource
	private LoginMapper loginMapper;

	@Override
	public Admin admin_selectDAO(Admin admin_) {
		Admin admin=loginMapper.admin_selectMapper(admin_);
		return admin;
	}

	@Override
	public Admin selectByIdDAO(Admin admin) {
		Admin admin_=loginMapper.selectByIdMapper(admin);
		return admin_;
	}

	@Override
	public void updatePwdByIdDAO(Admin admin) {
		loginMapper.updatePwdByIdMapper(admin);
		
	}
	
	
	
	
	
	
	
	
	
	
}













